package com.cetc.sdp.kmga.cs.util;

import java.util.HashMap;
import java.util.Map;

/**
 * @description:
 * @author： DengQiang
 * @date: 2018/3/9 9:39
 */
public class WorkConfImpl implements WorkConf {

    private Map<String, String> sparkConf;

    private int duration = 5;

    private String applicationName;

    public WorkConfImpl() {
        sparkConf = new HashMap<>();
    }

    @Override
    public Map<String, String> getSparkConf() {
        return sparkConf;
    }

    @Override
    public void addConf(String key, String val) {
        this.sparkConf.put(key, val);
    }

    @Override
    public int getDuration() {
        return duration;
    }

    @Override
    public void setDuration(int duration) {
        this.duration = duration;
    }

    @Override
    public String getApplicationName() {
        return applicationName;
    }

    @Override
    public void setApplicationName(String applicationName) {
        this.applicationName = applicationName;
    }
}
